package com.endurance.utils;

import com.endurance.decorate.AbstractDecorateCache;
import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author: sunlin
 * @Date: 2024-05-16 18:13
 * @Version: 1.0
 * @Description:
 */
@Component
public class MyCache {

    @Autowired
    private AbstractDecorateCache abstractDecorateCache;

    public <T> T getCache(String key, Class<T> t, ProceedingJoinPoint joinpoint) {
        return abstractDecorateCache.getCache(key, t, joinpoint);
    }

}
